The Accordion Pane Component > FAccordionPane.getDataProvider()

 

FAccordionPane.getDataProvider()

Availability

Flash Player 6.

Usage

myAccordion_acp.getDataProvider ()

Parameters

none

Returns

Returns the DataProvider being used to populate the accordion pane.

Description

Returns the DataProvider being used to populate the accordion pane. The returned DataProvider should have the following fields,

label

The name of the section.

linkage

The linkage id of the content within the section.

 

Example

The following code adds items to the accordion pane, and then retrieves the DataProvider class from the component.

myAccordionPane_acp.addItem("Section 1","section1");
myAccordionPane_acp.addItem("Section 2","section2");
myAccordionPane_acp.addItem("Section 3","section3");
myAccordionPane_acp.addItem("Section 4","section4");
var dp = myAccordionPane_acp.getDataProvider();
trace("DataProvider Length: "+dp.getLength()) // traces "DataProvider Length: 4"

See also

FAccordionPane.setDataProvider()